package com.zhangyue.wqercs.guideactivity;

import android.annotation.SuppressLint;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class TranslateFragment extends Fragment {
    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        Bundle bundle = getArguments();
        int index = bundle.getInt("index");
        int resId = bundle.getInt("resId");
        View view = LayoutInflater.from(getContext()).inflate(resId,container,false);
        view.setTag(index);
        return view;
    }
}
